package com.heykui.restfulcrud.Exception;

import com.heykui.restfulcrud.result.CodeMsg;

/**
 * 用户操作不当造成的异常
 */
public class Fail extends Base {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    public Fail(CodeMsg codeMsg, String msg) {
        super(codeMsg, msg);
    }

    public Fail(String msg){
        this(CodeMsg.FAIL, msg);
    }
    
    public Fail(CodeMsg codeMsg){
        super(codeMsg);
    }

    public Fail(){
        super(CodeMsg.FAIL);
    }

}